#include <iostream>
using namespace std;
/* run this program using the console pauser or add your own getch, system("pause") or input loop */

int main(int argc, char** argv) {
	int a=10;
	int b=20;
	cout<<(a&b)<<endl;
	cout<<(a|b)<<endl;
	cout<<(a^b)<<endl;
	cout<<~a<<endl;
	cout<<(a>>2)<<endl;
	return 0;
}